package me.ezitku.base.extensions

import android.app.ProgressDialog
import android.content.Context

/**
 * Created by yurqi on 2017/5/3.
 */

private var progressDialog: ProgressDialog? = null

fun Context.showProgress() {
    progressDialog = ProgressDialog(this)
    progressDialog?.setCanceledOnTouchOutside(false)
    progressDialog?.show()
}

fun Context.hideProgress() {
    progressDialog?.dismiss()
}